package com.litong.litongjiaoyu.entity;


import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

public class SysClassschedule {

    private long id;
    private String classname;
    private String campus;

    private String date;
    private String time;
    private String classroom;
    private String teacher;
    private String coursetitle;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }


    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }


    public String getCampus() {
        return campus;
    }

    public void setCampus(String campus) {
        this.campus = campus;
    }


    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }


    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getCoursetitle () {
        return coursetitle;
    }

    public void setCoursetitle (String coursetitle) {
        this.coursetitle = coursetitle;
    }

    @Override
    public String toString () {
        return "SysClassschedule{" +
                "id=" + id +
                ", classname='" + classname + '\'' +
                ", campus='" + campus + '\'' +
                ", date='" + date + '\'' +
                ", time='" + time + '\'' +
                ", classroom='" + classroom + '\'' +
                ", teacher='" + teacher + '\'' +
                ", coursetitle='" + coursetitle + '\'' +
                '}';
    }

    @Override
    public boolean equals (Object o) {
        if (this == o) {
            return true;
        }

        if (! (o instanceof SysClassschedule)){
            return false;
        }

        SysClassschedule that = (SysClassschedule) o;

        return new EqualsBuilder()
                .append(getId(), that.getId())
                .append(getClassname(), that.getClassname())
                .append(getCampus(), that.getCampus())
                .append(getDate(), that.getDate())
                .append(getTime(), that.getTime())
                .append(getClassroom(), that.getClassroom())
                .append(getTeacher(), that.getTeacher())
                .append(getCoursetitle(), that.getCoursetitle())
                .isEquals();
    }

    @Override
    public int hashCode () {
        return new HashCodeBuilder(17, 37)
                .append(getId())
                .append(getClassname())
                .append(getCampus())
                .append(getDate())
                .append(getTime())
                .append(getClassroom())
                .append(getTeacher())
                .append(getCoursetitle())
                .toHashCode();
    }
}
